<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec"    uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<sec:authentication property="principal" var="currentPrincipal" scope="page" />

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>

</head>

<body class="ms-theme-blue">

  <%@ include file="/WEB-INF/include/header.jsp"%>
  <%@ include file="/WEB-INF/include/submenu.jsp"%>
  
  <div class="container-fluid ms-container has-ms-sidemenu">
    
    <ol class="ms-breadcrumb breadcrumb">
      <li class="active">运输收入明细表&nbsp;-&nbsp;查询</li>
    </ol>
    
    <div class="ms-content-layout">
    
      <form class="form-horizontal ms-form form-personal-info" method="POST" action="${ctx.host}/reports" data-validate="true">
      
        <input type="hidden" name="transport-revenue-schedule" value="true" >
        
        <div class="form-group ms-form-group">
          <jsp:include page="/WEB-INF/jsps/business/select-company.jsp">
            <jsp:param value="false" name="multiple"/>
          </jsp:include>
        
	        <label class="col-xs-2 control-label">业内业外：</label>
          <div class="col-xs-3">
            <select class="select2 form-control" name="business" tabindex="2" >
              <option value="true">业内</option>
              <option value="false">业外</option>
            </select>
          </div>
        </div>
        
        <div class="form-group ms-form-group">
         <label class="col-xs-2 control-label">起始地：</label>
         <div class="col-xs-3 modal-search-warp">
           <input type="text" class="form-control fromWarehouse-search modal-search" 
                              data-value-name="srcWhId" placeholder="请填写起始地"
                              data-modal-search="#modal-search-fromWarehouse" tabindex="3">
           <a href="javascript:void(0);" class="btn" data-target="#modal-search-fromWarehouse" data-toggle="modal">
             <span class="glyphicon glyphicon-align-justify" aria-hidden="true"></span>
           </a>
         </div>
         
         <label class="col-xs-2 control-label">目的地：</label>
         <div class="col-xs-3 modal-search-warp">
           <input type="text" class="form-control toWarehouse-search modal-search" 
                              data-value-name="destWhId" placeholder="请填写目的地"
                              data-modal-search="#modal-search-toWarehouse" tabindex="4">
           <a href="javascript:void(0);" class="btn" data-target="#modal-search-toWarehouse" data-toggle="modal">
             <span class="glyphicon glyphicon-align-justify" aria-hidden="true"></span>
           </a>
         </div>
       </div>
        
        <div class="form-group ms-form-group">
          <label class="col-xs-2 control-label">委托客户：</label>
          <div class="col-xs-3 modal-search-warp">
            <input type="text" class="form-control consignor-search modal-search" 
                               data-value-name="consignorId" placeholder="请填写委托客户"  
                               data-modal-search="#modal-search-consignor" tabindex="5">
            <a href="javascript:void(0);" class="btn" data-target="#modal-search-consignor" data-toggle="modal">
              <span class="glyphicon glyphicon-align-justify" aria-hidden="true"></span>
            </a>
          </div>
          
          <label class="col-xs-2 control-label">最终客户：</label>
          <div class="col-xs-3 modal-search-warp">
            <input type="text" class="form-control customer-search modal-search" 
                               data-value-name="customerId" placeholder="请填写最终客户"  
                               data-modal-search="#modal-search-customer" tabindex="6">
            <a href="javascript:void(0);" class="btn" data-target="#modal-search-customer" data-toggle="modal">
              <span class="glyphicon glyphicon-align-justify" aria-hidden="true"></span>
            </a>
          </div>
        </div>
        
        <div class="form-group ms-form-group">
          <label class="col-xs-2 control-label">制造商：</label>
            <div class="col-xs-3 modal-search-warp">
            <input type="text" class="form-control manufacturer-search modal-search" 
                               data-value-name="vhModelId" placeholder="请填写制造商"  
                               data-modal-search="#modal-search-manufacturer" tabindex="7">
            <a href="javascript:void(0);" class="btn" data-target="#modal-search-manufacturer" data-toggle="modal">
              <span class="glyphicon glyphicon-align-justify" aria-hidden="true"></span>
            </a>
          </div>
          <label class="col-xs-2 control-label">外借公司：</label>
          <div class="col-xs-3 modal-search-warp">
            <input type="text" class="form-control company-search modal-search" 
                               data-value-name="companyId" placeholder="请填写外借公司"  
                               data-modal-search="#modal-search-company" tabindex="8">
            <a href="javascript:void(0);" class="btn" data-target="#modal-search-company" data-toggle="modal">
              <span class="glyphicon glyphicon-align-justify" aria-hidden="true"></span>
            </a>
          </div>
        </div>
        
        <div class="form-group ms-form-group">
          <label class="col-xs-2 control-label">结算标志：</label>
          <div class="col-xs-3">
            <select class="select2 form-control" name="collectStatus" tabindex="9" >
              <option></option>
              <option value="N">不可结算</option>
              <option value="Y">可结算</option>
              <option value="C">已结算</option>
              <option value="S">已送SAP</option>
            </select>
          </div>
          
          <%-- <label class="col-xs-2 control-label">内部车队：</label>
          <div class="col-xs-3">
            <select class="select2 form-control" name="team" tabindex="1" >
              <option></option>
              <c:forEach var="team" items="${selection.teams}">
                <option value="${team.id}">${team.name}</option>
              </c:forEach>
            </select>
          </div> --%>
        </div>
        
        <div class="form-group ms-form-group">
          <label class="col-xs-2 control-label">是否开票：</label>
          <div class="col-xs-3">
            <select class="select2 form-control" name="invoice" tabindex="10" >
              <option></option>
              <option value="false">未开票</option>
              <option value="true">已开票</option>
            </select>
          </div>
          
          <label class="col-xs-2 control-label">是否销单：</label>
          <div class="col-xs-3">
            <select class="select2 form-control" name="balanced" tabindex="11" >
              <option></option>
              <option value="false">未销单</option>
              <option value="true">已销单</option>
            </select>
          </div>
        </div>
        
        <div class="form-group ms-form-group">
          <label class="col-xs-2 control-label">调度指令时间：</label>
          <div class="col-xs-8 common-date">
            <input type="text" name="beginShipmentDate" class="form-control date" placeholder="请填写开始调度指令时间" tabindex="11" autocomplete="off">
            <label class="control-label">到：</label>
            <input type="text" name="endShipmentDate" class="form-control date" placeholder="请填写结束调度指令时间" tabindex="12" autocomplete="off">
          </div>
        </div>
        
        <div class="form-group ms-form-group">
          <label class="col-xs-2 control-label">回单日期：</label>
          <div class="col-xs-8 common-date">
            <input type="text" name="beginAccConfirmDate" class="form-control date" placeholder="请填写开始回单日期" tabindex="13" autocomplete="off">
            <label class="control-label">到：</label>
            <input type="text" name="endAccConfirmDate" class="form-control date" placeholder="请填写结束回单日期" tabindex="14" autocomplete="off">
          </div>
        </div>
        
        <div class="form-group ms-form-group">
          <label class="col-xs-2 control-label">开票日期：</label>
          <div class="col-xs-8 common-date">
            <input type="text" name="beginInvoiceDate" class="form-control date" placeholder="请填写开始开票日期" tabindex="15" autocomplete="off">
            <label class="control-label">到：</label>
            <input type="text" name="endInvoiceDate" class="form-control date" placeholder="请填写结束开票日期" tabindex="16" autocomplete="off">
          </div>
        </div>
        
        <div class="form-group ms-form-group">
          <label class="col-xs-2 control-label">调度指令号列表：</label>
          <div class="col-xs-3 ">
            <textarea name="loadNumbers" class="textarea" rows="8" cols="46" ></textarea>
            <label class="control-label" style="color: red;">最多999条指令，每条指令一行</label>
            <label class="control-label" style="color: blue;">当前<span class="loadNumbers-row-size">0</span>行</label>
            <button type="button" class="btn ms-btn btn-cancle">清空</button>
          </div>
          
          <label class="col-xs-2 control-label">订单号列表：</label>
          <div class="col-xs-3 ">
            <textarea name="orderCodes" class="textarea" rows="8" cols="46"></textarea>
            <label class="control-label" style="color: red">最多999个订单，每个订单一行 </label>
            <label class="control-label" style="color: blue;">当前<span class="orderCodes-row-size">0</span>行</label>
            <button type="button" class="btn ms-btn btn-cancle">清空</button>
          </div>
        </div>
        
        
        <div class="form-group ms-form-group">
        	<div class="col-xs-6 col-xs-offset-3 ms-operation-group top-margin-20 text-center">
            <div class="col-xs-5">
              <button type="reset" class="btn btn-block btn-default btn-remove">重置</button>
            </div>
            <div class="col-xs-5">
              <button type="submit" class="btn btn-block btn-primary" tabindex="16">查询</button>
            </div>
        	</div>
        </div>

      </form>

    </div> 
  </div>       
  <%@ include file="/WEB-INF/include/script.jsp"%>
  <d:resource type="script" root="${ctx.resource}/build" src="js/page/report/report/transport-revenue-schedule-search.js" />
  <script type="text/javascript">
      require(['page/report/report/transport-revenue-schedule-search'], function(page) {
        page.init()
      })
  </script>

</body>
</html>